#include "aux_menu.h"

const int ajuste = CHAR_HEIGHT >> 1;

void draw_rect_modo(char color, char* base)
{
	draw_rect((24+19)*CHAR_WIDTH, (5-4)*CHAR_HEIGHT - ajuste, (24+30+19)*CHAR_WIDTH, (9-4)*CHAR_HEIGHT, color, base);
	draw_line((24+19)*CHAR_WIDTH, (6-4)*CHAR_HEIGHT + ajuste/2, (24+30+19)*CHAR_WIDTH, (6-4)*CHAR_HEIGHT + ajuste/2, color, base);
}

void draw_rect_normal_focus(char color, char* base)
{
	draw_rect((25+19)*CHAR_WIDTH - 1, 3*CHAR_HEIGHT - 1 - ajuste, (25+13+19)*CHAR_WIDTH + 1, 5*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_normal_selected(char color, char* base)
{
	draw_rect((25+19)*CHAR_WIDTH, 3*CHAR_HEIGHT - ajuste, (25+13+19)*CHAR_WIDTH, 5*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_rede_focus(char color, char* base)
{
	draw_rect((41+19)*CHAR_WIDTH - 1, 3*CHAR_HEIGHT - 1 - ajuste, (41+12+19)*CHAR_WIDTH + 1, 5*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_rede_selected(char color, char* base)
{
	draw_rect((41+19)*CHAR_WIDTH, 3*CHAR_HEIGHT - ajuste, (41+12+19)*CHAR_WIDTH, 5*CHAR_HEIGHT - ajuste, color, base);
}


void draw_rect_informacoes(char color, char* base)
{
	draw_rect((24+19)*CHAR_WIDTH, 7*CHAR_HEIGHT - ajuste, (24+30+19)*CHAR_WIDTH, 11*CHAR_HEIGHT, color, base);
	draw_line((24+19)*CHAR_WIDTH, 8*CHAR_HEIGHT + ajuste/2, (24+30+19)*CHAR_WIDTH, 8*CHAR_HEIGHT + ajuste/2, color, base);
}

void draw_rect_regras_focus(char color, char* base)
{
	draw_rect((25+19)*CHAR_WIDTH - 1, 9*CHAR_HEIGHT - 1 - ajuste, (25+13+19)*CHAR_WIDTH - 1, 11*CHAR_HEIGHT - 1 - ajuste, color, base);
}

void draw_rect_regras_selected(char color, char* base)
{
	draw_rect((25+19)*CHAR_WIDTH, 9*CHAR_HEIGHT - ajuste, (25+13+19)*CHAR_WIDTH, 11*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_objectivos_focus(char color, char* base)
{
	draw_rect((41+19)*CHAR_WIDTH - 1, 9*CHAR_HEIGHT - 1 - ajuste, (41+12+19)*CHAR_WIDTH + 1, 11*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_objectivos_selected(char color, char* base)
{
	draw_rect((41+19)*CHAR_WIDTH, 9*CHAR_HEIGHT - ajuste, (41+12+19)*CHAR_WIDTH, 11*CHAR_HEIGHT - ajuste, color, base);
}


void draw_rect_jogar_sair(char color, char* base)
{
	draw_rect((27+19)*CHAR_WIDTH, 13*CHAR_HEIGHT - ajuste, (27+23+19)*CHAR_WIDTH, 17*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_jogar_focus(char color, char* base)
{
	draw_rect((29+19)*CHAR_WIDTH - 1, 14*CHAR_HEIGHT - 1 - ajuste, (29+7+19)*CHAR_WIDTH + 1, 16*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_jogar(char color, char* base)
{
	draw_rect((29+19)*CHAR_WIDTH, 14*CHAR_HEIGHT - ajuste, (29+7+19)*CHAR_WIDTH, 16*CHAR_HEIGHT - ajuste, color, base);
}

void draw_rect_sair_focus(char color, char* base)
{
	draw_rect((42+19)*CHAR_WIDTH - 1, 14*CHAR_HEIGHT - 1 - ajuste, (42+6+19)*CHAR_WIDTH + 1, 16*CHAR_HEIGHT + 1 - ajuste, color, base);
}

void draw_rect_sair(char color, char* base)
{
	draw_rect((42+19)*CHAR_WIDTH, 14*CHAR_HEIGHT - ajuste, (42+6+19)*CHAR_WIDTH, 16*CHAR_HEIGHT - ajuste, color, base);
}

// ------ LINHA SUPERIOR -------//
void draw_rect_SUP_esq(char color, char* base)
{
	draw_rect(7*CHAR_WIDTH, 1*CHAR_HEIGHT, (35)*CHAR_WIDTH, 14.8*CHAR_HEIGHT, color, base);
}

void draw_rect_SUP_cen(char color, char* base)
{
	draw_rect(35*CHAR_WIDTH, 1*CHAR_HEIGHT, 62*CHAR_WIDTH, 14.8*CHAR_HEIGHT, color, base);
}

void draw_rect_SUP_dir(char color, char* base)
{
	draw_rect(62*CHAR_WIDTH, 1*CHAR_HEIGHT, 89*CHAR_WIDTH, 14.8*CHAR_HEIGHT, color, base);
}


// ------ LINHA CENTRAL -------//
void draw_rect_CEN_esq(char color, char* base)
{
	draw_rect(7*CHAR_WIDTH, 14.8*CHAR_HEIGHT, (35)*CHAR_WIDTH, 28.6*CHAR_HEIGHT, color, base);
}

void draw_rect_CEN_cen(char color, char* base)
{
	draw_rect(35*CHAR_WIDTH, 14.8*CHAR_HEIGHT, 62*CHAR_WIDTH, 28.6*CHAR_HEIGHT, color, base);
}

void draw_rect_CEN_dir(char color, char* base)
{
	draw_rect(62*CHAR_WIDTH, 14.8*CHAR_HEIGHT, 89*CHAR_WIDTH, 28.6*CHAR_HEIGHT, color, base);
}


// ------ LINHA INFERIOR -------//
void draw_rect_INF_esq(char color, char* base)
{
	draw_rect(7*CHAR_WIDTH, 28.6*CHAR_HEIGHT, (35)*CHAR_WIDTH, 42.4*CHAR_HEIGHT, color, base);
}

void draw_rect_INF_cen(char color, char* base)
{
	draw_rect(35*CHAR_WIDTH, 28.6*CHAR_HEIGHT, 62*CHAR_WIDTH, 42.4*CHAR_HEIGHT, color, base);
}

void draw_rect_INF_dir(char color, char* base)
{
	draw_rect(62*CHAR_WIDTH, 28.6*CHAR_HEIGHT, 89*CHAR_WIDTH, 42.4*CHAR_HEIGHT, color, base);
}


// ------- Rectangulos nome dos jogadores -----//

void draw_rect_Jogador1(char color, char* base)
{
	draw_rect(101*CHAR_WIDTH, 4.8*CHAR_HEIGHT, 112*CHAR_WIDTH, 6.2*CHAR_HEIGHT, color, base);
}

void draw_rect_Jogador2(char color, char* base)
{
	draw_rect(101*CHAR_WIDTH, 10.8*CHAR_HEIGHT, 112*CHAR_WIDTH, 12.2*CHAR_HEIGHT, color, base);
}

void draw_rect_Regras(char color, char* base)
{
	draw_rect(1*CHAR_WIDTH, 32*CHAR_HEIGHT, 62*CHAR_WIDTH, 46*CHAR_HEIGHT, color, base);
}

void draw_rect_Objectivos(char color, char* base)
{
	draw_rect(64*CHAR_WIDTH, 32*CHAR_HEIGHT, 124*CHAR_WIDTH, 46*CHAR_HEIGHT, color, base);
}
